package com.snjx.admui.master.controller;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.snjx.admui.master.entity.MasterEntity;
import com.snjx.admui.utils.ApiVersion;

import lombok.extern.log4j.Log4j;

/**
* @author zyl
* @date 2017年6月8日 
* @describe
*/
@RestController
@RequestMapping("/{version}/")
@Log4j(topic="defined")
public class MasterController {
   @Autowired
   //private MasterService masterService;
   @RequestMapping("/master")
   @ApiVersion(value = "")
   public MasterEntity MasterInit(){
	   log.info("@开始"+new Date());
	   MasterEntity  entity=new MasterEntity();
	   entity.setUid("00000000001");
	   entity.setUserId("userId");
	   entity.setUserName("userName");
	   entity.setUserPwd("userPwd");
	   entity.setRoleId("roleId");
	   entity.setUserEmail("userEmail");
	   entity.setUserAge(20);
	   entity.setCreateTime(new Date());
	   entity.setUpdateTime(new Date());
	   log.info("@结束"+new Date());
	return entity;
	   
   }
}
